﻿<%@ Page Language="C#" AutoEventWireup="true"  %>
<% 
	if (HttpContext.Current.Session["client_id"] == null) Response.Redirect("./InvalidRequest.aspx");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>OAuthServer</title>
	<link rel="Stylesheet" type="text/css" href="./css/stile.css">
</head>
<body>
	<br/><br/><br/><br/><br/>
	<div class="wrapper">
		<div class="form">
			<form action="./Authenticate.aspx" method="post" id="login_form">
                <br /><br /><br />
			<label>
				Please Login</label>
			<% if (Request["error"] != null)
	  {
			%>
			<span style='color: #123456;'>Bad User or password</span>
			<%
	}
			%>
			<table class="form_field">
				<tr>
					<td class="right">
						User:
					</td>
					<td>
						<input type="text" name="user" id="user" style="width: 12em;">
					</td>
				</tr>
				<tr>
					<td class="right">
						Password:
					</td>
					<td>
						<input type="password" name="password" id="password" style="width: 12em;">
					</td>
				</tr>
				<tr>
					</td>
				</tr>
			</table>
			</br>
			<div class="action">
				<input type="submit" value="Login" />
			</div>
                <br /><br /><br />
                © 2013 <a href="http://www.tempestive.com">Tempestive S.r.l.</a>
			</form>
		</div>
	</div>
</body>
</html>
